<template>
  <div id="app">
    <router-view/>
    <router-view name="Footer"></router-view>
  </div>
</template>
<script>
export default {
  components: {

  }
}
</script>
<style>
*{
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
  font-weight: normal;
}
html,body,#app {
  height: 100%;
}
html {
  /* 26.67vw = 100px */
  font-size: 26.67vw;
  /* 
  1vw=视口宽度(375px)的百分之一
  1vw=3.75px
  1px=1/3.75vw=0.2667
  100px=26.67vw

  1rem=根元素的字体大小 100px
  44px = 0.44rem
  */
}
body {
  font-size: 16px;
}
#app {
  display: flex;
  flex-direction: column;
}
#app .box{
  display: flex;
  flex: 1;
  overflow-y: auto;
  flex-direction: column;
}
#app .box .header{
  height: 0.44rem;
  background: rgb(201, 22, 35);
}
#app .box .main{
  flex: 1;
  overflow-y: auto;
  background:rgb(239, 239, 239);
}
#app .footer {
  height: 0.44rem;
  background:#fff ;
  color: rgb(201, 22, 35);
}
#app .footer ul{
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
/* 交叉选择器 */
#app .footer ul li.router-link-exact-active{
  color: rgb(201, 22, 35);
}
#app .footer ul li{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .12rem;
  color: rgb(165, 165, 165);
}
</style>
